#include "Stack.h"


void TestStack1()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	printf("%d ", StackTop(&st));
	StackPop(&st);
	printf("%d ", StackTop(&st));
	StackPush(&st, 100);
	printf("%d ", StackTop(&st));



	StackDestory(&st);
}
void TestStack2()
{
	Stack st;
	StackInit(&st);
	for (int i = 0; i < 10; i++)
	{
		StackPush(&st, i * 10);

	}

	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}

	printf("\n");

	StackDestory(&st);
}
int main()
{
	TestStack2();
	return 0;
}